/**
 * 
 */
package com.xb.demo8.abstract1.factory;

/**
 * @author kexue
 *
 */
public class TestMain {

	public static void main(String[] args) {
		TagFactory fTagFactory =new SimpleTagFactory();

		Tag a = fTagFactory.createTag("a", "this is a ");
		Tag a1 = fTagFactory.createTag("a", "this is a1 ");
		Tag p = fTagFactory.createTag("p", "this is p ");
		Tag p1 = fTagFactory.createTag("p", "this is p1 ");

		System.out.println(a.mkHtml());
		System.out.println(a1.mkHtml());
		System.out.println(p.mkHtml());
		System.out.println(p1.mkHtml());
		
	}
}
